package daily

import "time"

type GroupInfo struct {
	ID           uint      `gorm:"primary_key"`
	GroupId      string    `gorm:"comment:'群id';column:groupId"`
	GroupName    string    `gorm:"comment:'群名';column:groupName"`
	MemberNumber int       `gorm:"comment:'群人数';column:memberNumber"`
	WelcomeWords string    `gorm:"comment:'欢迎词';column:welcomeWords"`
	IsDaily      bool      `gorm:"comment:'日报';column:isDaily"`
	IsMonthly    bool      `gorm:"comment:'月报';column:isMonthly"`
	CreatedAt    time.Time `gorm:"comment:'创建时间';type:datetime;"`
	UpdatedAt    time.Time `gorm:"comment:'修改时间';type:datetime;"`
}

type ChatRecord struct {
	ID        uint      `gorm:"primary_key"`
	GroupId   string    `gorm:"comment:'群id';column:groupId"`
	WxId      string    `gorm:"comment:'发送人微信id';column:wxId"`
	Name      string    `gorm:"comment:'发送人名字';column:name"`
	Message   string    `gorm:"comment:'消息内容';column:message"`
	CreatedAt time.Time `gorm:"comment:'创建时间';type:datetime;"`
	UpdatedAt time.Time `gorm:"comment:'修改时间';type:datetime;"`
}
